package com.wanxi.fileandio.file;

import java.io.File;
import java.io.IOException;

public class FileTest2 {
    public static void main(String[] args) throws IOException {
//        File file1 = new File("d:\\test1\\test44.txt");//创建文件
//        if(!file1.exists()){
//            file1.createNewFile();
//        }
////        file1.delete();
        File file2 = new File("d:\\test1\\test55");//创建文件目录
        file2.mkdir();

        File file3= new File("d:\\test1\\test77\\teds");
        file3.mkdirs();

    }
}
